package org.anderground.editor.edits;

import static org.anderground.editor.edits.Editor.edit;

import java.util.List;

import org.anderground.core.model.Station;
import org.anderground.core.util.Coord;

/**
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 */
public class MoveStationPositionAction extends MoveStationCoordsAction {

	/**
	 * @param dx
	 * @param dy
	 * @param stations
	 */
	public MoveStationPositionAction(float dx, float dy,
			List<? extends Station> stations) {
		super(dx, dy, stations);
	}

	/**
	 * @param dx
	 * @param dy
	 * @param stations
	 */
	public MoveStationPositionAction(float dx, float dy, Station... stations) {
		super(dx, dy, stations);
	}

	@Override
	protected Coord getCoord(Station station) {
		return station.getPosition();
	}

	@Override
	protected void setCoord(Station station, Coord coord) {
		edit(station).setPosition(coord);
	}

}
